/* 
 * Copyright [2018] [Alex/libo(liboware@gmail.com)]
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyt.tomcat.config;

/** 
 * @author LiBo/Alex
 * @version V1.0 
 */
public enum LoadConfigLevel {
    
    /**
     * jvm参数优先级别最高
     */
    JVM_COMMAND(-1),
    
    /**
     * program命令行
     * 请注意此部分是通过系统main方法的args传入的
     * 并非jvm参数结构
     */
    @Deprecated
    PROGRAM_COMMAND(0),

    /**
     * 配置文件优先级
     */
    CONFIG(1),
    
    /**
     * 环境变量优先级
     */
    ENV(2);
    /**  
     * @constructor：LoadConfigLevel  
     * @param number  
     */ 
    private LoadConfigLevel(int number) {
        this.number = number;
    }
    
    private int number;
    /**  
     * @name number's getter method
     * @param none
     * @return number
     */
    public int getNumber() {
        return number;
    }
    /**  
     * @name number's setter method
     * @param number
     * @return void
     */
    public void setNumber(int number) {
        this.number = number;
    }
    
}
